<?php
error_reporting(E_ALL);
require 'config.php';
require 'inc/require.php';

// Saves current location, called by Sendlocation App iphone.

$lat = $_GET['lat'];
$lon = $_GET['lon'];

$location = new Location();
$location->id = 2;
$location->lat = $lat;
$location->lng = $lon;

if($location->save()) {
	echo 'Succesvol opgeslagen.';
} else {
	echo 'Er is iets mis gegaan bij het opslaan.';
}


?>